package edu.sctu.practice.class02.yangyuran.test26;

/**
 * Created by Administrator on 2015/10/20.
 */
public class Manager extends Employee {
    private final String vehicle;

    public Manager(String nam, int ag, String gend, int id, String sala, String vehicle) {
        super(nam, ag, gend, id, sala);
        this.vehicle = vehicle;
    }

    public void play() {
        System.out.println("\n领导信息：" + "\n姓名：" + getName() + "\n年龄：" + getAge() + "\n薪水：" + getSalary() + "元\n编号：" + getID() + "\n交通工具：" + vehicle);
    }
}
